﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///订单表
    ///</summary>
    [SugarTable("bs_order")]
    public partial class BsOrder
    {
           public BsOrder(){


           }
           /// <summary>
           /// Desc:主键
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,ColumnName="id")]
           public string Id {get;set;}

           /// <summary>
           /// Desc:订单时间
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="order_time")]
           public DateTime OrderTime {get;set;}

           /// <summary>
           /// Desc:订单金额
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="amount")]
           public decimal? Amount {get;set;}

           /// <summary>
           /// Desc:下单用户
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="order_userid")]
           public long OrderUserid {get;set;}

           /// <summary>
           /// Desc:订单状态(0草稿 1已下单 2已付款 3已发货 4完成)
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="status")]
           public byte Status {get;set;}

           /// <summary>
           /// Desc:备注
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="remark")]
           public string Remark {get;set;}

           /// <summary>
           /// Desc:创建者ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="create_userid")]
           public string CreateUserid {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="create_time")]
           public DateTime CreateTime {get;set;}

           /// <summary>
           /// Desc:更新者ID
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="update_userid")]
           public string UpdateUserid {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="update_time")]
           public DateTime? UpdateTime {get;set;}

    }
}
